package org.artifact.core.plugin.netty.codec;

import org.artifact.core.context.packet.IPacket;

import io.netty.channel.CombinedChannelDuplexHandler;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.handler.codec.MessageToByteEncoder;

public class NettyCodec extends CombinedChannelDuplexHandler<ByteToMessageDecoder, MessageToByteEncoder<IPacket>> {

	public NettyCodec() {
		this(new NettyDecoder(), new NettyEncoder());
	}

	public NettyCodec(ByteToMessageDecoder inboundHandler,MessageToByteEncoder<IPacket> outboundHandler) {
		super(inboundHandler, outboundHandler);
	}
}